#include "BondDetailPrcArea.h"
#include "BondDetailPrcInstitute.h"
#include "BondDetailPrcChange.h"
#include "BondDetailPrcMyPurchase.h"
#include "BondDetailPrcRelevance.h"
#include "BondDetailPrcAprismt.h"
#include <QWidget>
#include <QPushButton>
#include <widgets/SDialog.h>
#include <qbtools/message/MessagePoster.h>
class DetailData;
class BondDetailPrcArea;
class BondDeatilPrcInstitute;
class BondDetailPrcChange;
class BondDetailPrcMyPurchase;
class BondDetailPrcRelevance;
class BondDetailPrcAprismt;

//一级券页面
class BondDetailPrimary : public QWidget
{
	Q_OBJECT
public:
    BondDetailPrimary(QWidget* p, QSharedPointer<DetailData> data);
protected slots:
	void onBondChanged();
//	void onNotifyApristChart(bool clicked , std::string key);
	void onNotifyApristChart(std::string key);
	void onCreateConnect();
private:
	bool						m_bBondAprismtInit = false;
    QSharedPointer<DetailData>  m_data = nullptr;
	BondDetailPrcArea*			m_prcArea = nullptr;
	BondDetailPrcInstitute*		m_prcInstitute = nullptr;
	BondDetailPrcChange*		m_prcChange = nullptr;
	BondDetailPrcMyPurchase*	m_prcMyPurchase = nullptr;
	BondDetailPrcRelevance*		m_prcRelevance = nullptr; 
	BondDetailPrcAprismt*		m_prcBondAprismt = nullptr;
	bool						m_bConnect = false;
};